package com.pearadmin.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pearadmin.common.nucleus.base.BaseModel;
import lombok.Data;
import org.apache.ibatis.type.Alias;
import org.apache.tomcat.util.modeler.BaseModelMBean;

@Data
@Alias("SysUser")
@TableName("sys_user")
public class SysUser extends BaseModel {
    //标识
    @TableId(value = "id",type = IdType.ID_WORKER_STR)
    private String id;
    //用户名
    @TableField("real_name")
    private String realName;
    //账户
    @TableField("username")
    private String username;
    //密码
    @TableField("password")
    private String password;
    //状态
    @TableField("status")
    private String status;
    //性别
    @TableField("sex")
    private String sex;
    //邮箱
    @TableField("email")
    private String email;
    //加密
    @TableField("salt")
    private String salt;
    //头像
    @TableField("avatar")
    private String avatar;
    //手机
    @TableField("mobile")
    private String mobile;
    //部门编号
    @TableField("dept_id")
    private String deptId;
    //角色计算列
    @TableField(exist = false)
    private String roles;

}
